setUp{
  SimpleNamingContextBuilder builder=new SimpleNamingContextBuilder();
  builder.activate();
  StartMain sm=new StartMain(new String[0]);
  WeldContainer weldContainer=sm.go();
  builder.bind(CdiObjectFactory.CDI_JNDIKEY_BEANMANAGER_COMP,weldContainer.getBeanManager());
}
testFindBeanManager{
  assertNotNull(new CdiObjectFactory().findBeanManager());
}
testGetBean{
  FooConsumer fooConsumer=(FooConsumer)cdiObjectFactory.buildBean(FooConsumer.class.getCanonicalName(),null,false);
  assertNotNull(fooConsumer);
  assertNotNull(fooConsumer.fooService);
}
testGetInjectionTarget{
  final CdiObjectFactory cdiObjectFactory=new CdiObjectFactory();
  final InjectionTarget<?> injectionTarget=cdiObjectFactory.getInjectionTarget(FooConsumer.class);
  assertTrue(cdiObjectFactory.injectionTargetCache.containsKey(FooConsumer.class));
  assertSame(cdiObjectFactory.getInjectionTarget(FooConsumer.class),injectionTarget);
}
